<@_homeUserList disabled=disabled
            orderField=orderField orderType=orderType pageIndex=pageNum count=numPerPage>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
		<div class="searchBar">
			<ul class="searchContent">
				<#include "../include_page/disabled.html"/>
			</ul>
			<div class="subBar">
				<ul>
					<li><button type="submit" class="buttonActive">搜索</button></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<@_sysAuthorized roleIds=admin.roles urls='homeUser/enable,homeUser/disable,homeUser/view'><#assign authorizedMap=map/></@_sysAuthorized>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		<#if authorizedMap['homeUser/enable']>
			<li><a href="homeUser/enable.do?id={sid}" title="确定要启用该用户空间吗?" target="ajaxTodo"><i class="icon-circle icon-large"></i> 启用</a></li>
		</#if>
		<#if authorizedMap['homeUser/disable']>
			<li><a href="homeUser/disable.do?id={sid}" title="确定要禁用该用户空间吗?" target="ajaxTodo"><i class="icon-ban-circle icon-large"></i> 禁用</a></li>
		</#if>
		</ul>
	</div>
	<table class="list" width="100%" layoutH="99">
		<thead>
			<tr>
				<th>用户ID</th>
				<th>昵称</th>
				<th>标题</th>
				<th>签名</th>
				<th orderField="lastLoginDate" class="<#if orderField??&&'lastLoginDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">上次登陆日期</th>
				<th orderField="createDate" class="<#if orderField??&&'createDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">创建日期</th>
				<th>已禁用</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
				<@t.merge 'userIds' a.userId!/>
			</#list>
			<@_sysUser ids=t.userIds!><#assign userMap=map!/></@_sysUser>

			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td>${a.userId!}</td>
				<td>${(userMap[a.userId?string].nickName)!}[${(userMap[a.userId?string].disabled?then('<font color="red">禁止登陆</font>','正常')?no_esc)!}]</td>
				<td>${a.title!}</td>
				<td>${a.signature!}</td>
				<td>${a.lastLoginDate!}</td>
				<td>${a.createDate!}</td>
				<td>${a.disabled?then('<font color="red">禁用</font>','正常')?no_esc}</td>
				<td>
					<#if authorizedMap['homeUser/view']>
						<a href="homeUser/view.html?id=${a.id}" target="dialog" rel="homeUser_view">查看</a>
					</#if>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</div>
</@_homeUserList>